#pragma once
#include "stdafx.h"
#include "UvClient.h"
#include "IOnPacket.h"
#include "PacketParser.h"

class CmdClient : public UvClient, public IOnPacket
{
public:
	CmdClient(uv_tcp_t* client);
	virtual ~CmdClient();
	virtual void OnPacket(Packet* pPacket);
	void SetFilter(int filter);
	int GetFilter();
protected:
	virtual void OnRead(char* pData, int length);
private:
	PacketParser m_Parser;
	int m_Filter;
};
